package org.simp.router;

import org.simp.core.message.SimpMessage;
import org.simp.core.request.SimpRequest;
import org.simp.handler.SimpHandler;

/**
 *路由拦截器
 * @author Administrator
 *
 */
public interface RouterInterceptor {

	/**
	 * 返回是否转发消息，转发了该消息，当前位置不用处理该消息
	 * @param simpRequest
	 * @param handler
	 * @return
	 */
	public boolean dispatchRequest(SimpRequest simpRequest,SimpHandler handler);
	
	/**
	 * 转发消息方法
	 * @param message
	 * @param handler
	 */
	public void dispatchSimpMessage(SimpMessage message,SimpHandler handler);
	
}
